package service.auth;

import java.util.List;
import java.util.Map;

import core.base.page.Page;
import core.base.page.PageRequest;
import model.auth.Authorities;
import model.auth.Roles;
import model.auth.RolesAuthorities;

public interface RolesAuthoritiesService {
	public void insert(RolesAuthorities model);

	public RolesAuthorities getById(Long id);

	public int deleteById(Long id);

	List<Roles> getRolesByAuthCode(String authCode);

	List<Authorities> getAuthoritiesByRoleId(Long roleId);

	Page<Roles> queryRolesForPage(PageRequest<Map> pageReq);

	Page<Authorities> queryAuthoritiesForPage(PageRequest<Map> pageReq);
}
